reftests: Fix compilation
authorBenjamin Otte <otte@redhat.com>
Mon, 25 Jun 2018 22:53:39 +0000 (00:53 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 25 Jun 2018 22:53:39 +0000 (00:53 +0200)
FOREIGN surfaces are gone.

testsuite/reftests/reftest-snapshot.c

index 2640050dd87b8f82ec7b0f66808e5763aefe4f6b..b84d2f58328dacd80a3ec5f3dd6267f07052d409 100644 (file)
@@ -108,8 +108,7 @@ snapshot_window_native (GdkSurface *window,
       XWindowAttributes attrs;
 
       if (gdk_surface_get_surface_type (window) == GDK_SURFACE_TOPLEVEL ||
-          gdk_surface_get_surface_type (window) == GDK_SURFACE_TEMP ||
-          gdk_surface_get_surface_type (window) == GDK_SURFACE_FOREIGN)
+          gdk_surface_get_surface_type (window) == GDK_SURFACE_TEMP)
         {
           /* give the WM/server some time to sync. They need it.
            * Also, do use popups instead of toplevels in your tests